Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change error codes from 16-bit to varints #2680

Merged
merged 6 commits into from
Jun 4, 2019

Conversation

ianswett
Copy link
Contributor

@ianswett ianswett commented May 9, 2019

Changes CONNECTION_CLOSE, STOP_SENDING, and RESET_STREAM to varint error codes.

Fixes #2672

Also fixes an error where the spec said the transport parameter registry is 16 bits, but transport parameters are now varints as well.

Changes CONNECTION_CLOSE, STOP_SENDING, and RESET_STREAM to varint error codes.

Fixes #2672
@ianswett ianswett added design An issue that affects the design of the protocol; resolution requires consensus. -transport labels May 9, 2019
Copy link
Member

@nibanks nibanks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@kazuho kazuho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the work!

Copy link
Member

@martinthomson martinthomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two relatively important things here.

@@ -5550,7 +5554,7 @@ The initial contents of this registry are tabulated in {{frame-types}}.
IANA \[SHALL add/has added] a registry for "QUIC Transport Error Codes" under a
"QUIC Protocol" heading.

The "QUIC Transport Error Codes" registry governs a 16-bit space. This space is
The "QUIC Transport Error Codes" registry governs a 62-bit space. This space is
split into two spaces that are governed by different policies. Values with the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we want to crib from the frame types (or other varint registries) when it comes to policies. There isn't really a "first byte" any more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, done.

draft-ietf-quic-transport.md Outdated Show resolved Hide resolved
@LPardue
Copy link
Member

LPardue commented May 10, 2019

For consistency you probably want to update HTTP too, e.g. there are some references to 16-bit error code there too

https://tools.ietf.org/html/draft-ietf-quic-http-20#section-10.5

@ianswett
Copy link
Contributor Author

Thanks for pointing that out @LPardue, http updated.

draft-ietf-quic-transport.md Outdated Show resolved Hide resolved
draft-ietf-quic-transport.md Outdated Show resolved Hide resolved
draft-ietf-quic-transport.md Show resolved Hide resolved
ianswett and others added 2 commits May 10, 2019 15:20
Co-Authored-By: Mike Bishop <mbishop@evequefou.be>
Mike's suggestion, carrying -> containing
@ianswett
Copy link
Contributor Author

Thanks Mike, I think I fixed all your suggestions.

Copy link
Contributor

@janaiyengar janaiyengar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the registry text. LGTM.

@janaiyengar janaiyengar merged commit 0fd9989 into master Jun 4, 2019
@martinthomson martinthomson deleted the ianswett-varint-error-codes branch June 26, 2019 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-transport design An issue that affects the design of the protocol; resolution requires consensus.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transport error codes would be smaller and more consistent as a varint
7 participants